/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sofia.Persistencia.Entidades;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author crisfalt
 */
@Entity
@Table(name = "Fisioterapeuta", catalog = "sofia", schema = "")
@NamedQueries({
    @NamedQuery(name = "EFisioterapeuta.findAll", query = "SELECT e FROM EFisioterapeuta e"),
    @NamedQuery(name = "EFisioterapeuta.findByIdLogin", query = "SELECT e FROM EFisioterapeuta e WHERE e.idLogin = :idLogin"),
    @NamedQuery(name = "EFisioterapeuta.findByNombre", query = "SELECT e FROM EFisioterapeuta e WHERE e.nombre = :nombre"),
    @NamedQuery(name = "EFisioterapeuta.findByCedula", query = "SELECT e FROM EFisioterapeuta e WHERE e.cedula = :cedula"),
    @NamedQuery(name = "EFisioterapeuta.findByTelefono", query = "SELECT e FROM EFisioterapeuta e WHERE e.telefono = :telefono"),
    @NamedQuery(name = "EFisioterapeuta.findByEmail", query = "SELECT e FROM EFisioterapeuta e WHERE e.email = :email"),
    @NamedQuery(name = "EFisioterapeuta.findByIdLoginJefe", query = "SELECT e FROM EFisioterapeuta e WHERE e.idLoginJefe = :idLoginJefe")})
public class EFisioterapeuta implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "id_login", nullable = false, length = 50)
    private String idLogin;
    @Basic(optional = false)
    @Column(name = "nombre", nullable = false, length = 120)
    private String nombre;
    @Basic(optional = false)
    @Column(name = "cedula", nullable = false, length = 20)
    private String cedula;
    @Column(name = "telefono", length = 40)
    private String telefono;
    @Column(name = "email", length = 50)
    private String email;
    @Column(name = "id_login_jefe", length = 50)
    private String idLoginJefe;

    public EFisioterapeuta() {
    }

    public EFisioterapeuta(String idLogin) {
        this.idLogin = idLogin;
    }

    public EFisioterapeuta(String idLogin, String nombre, String cedula) {
        this.idLogin = idLogin;
        this.nombre = nombre;
        this.cedula = cedula;
    }

    public String getIdLogin() {
        return idLogin;
    }

    public void setIdLogin(String idLogin) {
        this.idLogin = idLogin;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getCedula() {
        return cedula;
    }

    public void setCedula(String cedula) {
        this.cedula = cedula;
    }

    public String getTelefono() {
        return telefono;
    }

    public void setTelefono(String telefono) {
        this.telefono = telefono;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getIdLoginJefe() {
        return idLoginJefe;
    }

    public void setIdLoginJefe(String idLoginJefe) {
        this.idLoginJefe = idLoginJefe;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idLogin != null ? idLogin.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof EFisioterapeuta)) {
            return false;
        }
        EFisioterapeuta other = (EFisioterapeuta) object;
        if ((this.idLogin == null && other.idLogin != null) || (this.idLogin != null && !this.idLogin.equals(other.idLogin))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "sofia.Persistencia.Entidades.EFisioterapeuta[idLogin=" + idLogin + "]";
    }

}
